package com.ticket.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ticket.common.annotation.Excel;
import com.ticket.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 预留座与座位关联对象 t_yanchu_reserved_ticket
 * 
 * @author ruoyi
 * @date 2023-10-18
 */
public class TYanchuReservedTicket extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 剧院id sys_dept主键 */
    @Excel(name = "剧院id sys_dept主键")
    private Long operaId;

    /** 场馆id yanchu_hall主键 */
    @Excel(name = "场馆id yanchu_hall主键")
    private Long hallId;

    /** 演出主键  t_yanchu_plan主键 */
    @Excel(name = "演出主键  t_yanchu_plan主键")
    private Long planId;

    /** 场次主键   yanchu_session主键id */
    @Excel(name = "场次主键   yanchu_session主键id")
    private Long sessionId;

    /** 预留座类型id 关联t_yanchu_reserved_seats主键 */
    @Excel(name = "预留座类型id 关联t_yanchu_reserved_seats主键")
    private Long resSeatId;

    /** 座位[{"areaId":1,"seats":[{"row":1,"seats":"1,3,5"},{"row":2,"seats":"2"}]}] */
    @Excel(name = "座位[{\"areaId\":1,\"seats\":{\"row\":1,\"seats\":\"1,3,5\"},{\"row\":2,\"seats\":\"2\"}}]")
    private String seats;

    /** 价格 */
    @Excel(name = "价格")
    private String salePrice;
    @Excel(name = "创建时间")
    private Date creatTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOperaId(Long operaId) 
    {
        this.operaId = operaId;
    }

    public Long getOperaId() 
    {
        return operaId;
    }
    public void setHallId(Long hallId) 
    {
        this.hallId = hallId;
    }

    public Long getHallId() 
    {
        return hallId;
    }
    public void setPlanId(Long planId) 
    {
        this.planId = planId;
    }

    public Long getPlanId() 
    {
        return planId;
    }
    public void setSessionId(Long sessionId) 
    {
        this.sessionId = sessionId;
    }

    public Long getSessionId() 
    {
        return sessionId;
    }
    public void setResSeatId(Long resSeatId) 
    {
        this.resSeatId = resSeatId;
    }

    public Long getResSeatId() 
    {
        return resSeatId;
    }
    public void setSeats(String seats) 
    {
        this.seats = seats;
    }

    public String getSeats() 
    {
        return seats;
    }
    public void setSalePrice(String salePrice) 
    {
        this.salePrice = salePrice;
    }

    public String getSalePrice() 
    {
        return salePrice;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("operaId", getOperaId())
            .append("hallId", getHallId())
            .append("planId", getPlanId())
            .append("sessionId", getSessionId())
            .append("resSeatId", getResSeatId())
            .append("seats", getSeats())
            .append("salePrice", getSalePrice())
            .toString();
    }
}
